package com.chhuang.system.bean;

import com.chhuang.core.bean.QueryBean;
import com.chhuang.system.po.ChUser;

public class ChUserQueryBean extends QueryBean<ChUser>{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5400781440346451768L;

	private String userId;

    private String username;

    private String password;

    private String nickname;

    private String phone;

    private String email;

    public ChUserQueryBean() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ChUserQueryBean(String userId, String username, String password, String nickname, String phone, String email) {
		super();
		this.userId = userId;
		this.username = username;
		this.password = password;
		this.nickname = nickname;
		this.phone = phone;
		this.email = email;
	}

	public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    
    private Boolean locked;
	public Boolean getLocked(){
		return locked;
	}
	public void setLocked(Boolean locked){
		this.locked=locked;
	}

	@Override
	public String fieldTransforColumn(String field) {
		if("userId".equals(field)){
			return "user_id";
		}else{
			return field;
		}
	}

	@Override
	public String columnTransforField(String column) {
		if("user_id".equals(column)){
			return "userId";
		}else{
			return column;
		}
	}
}
